import {baseApi} from './apiconfig'
import { request } from './request'

// 登录
function wxLogin (data) {
  return request({
    url: baseApi+'/api/login',
    method: 'POST',
    data: data
  })
}

function passLogin (data) {
  return request({
    url: baseApi+'/api/userLogin',
    method: 'POST',
    data: data
  })
}
module.exports = {
  wxLogin,
  passLogin
}